This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
			
		||||
 | 
			
		||||
title: "Bit magic in C (and C++)"
 | 
			
		||||
subtitle: ""
 | 
			
		||||
summary: ""
 | 
			
		||||
summary: "Tips and trick for embedded C/C++"
 | 
			
		||||
authors: []
 | 
			
		||||
tags: []
 | 
			
		||||
categories: []
 | 
			
		||||
@@ -76,7 +76,7 @@ output = input << 3; // Multiply by 8
 | 
			
		||||
output = (0b1 << X) -1;
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
# Miccelean
 | 
			
		||||
# Miscellaneous
 | 
			
		||||
```c
 | 
			
		||||
// Check if number is ODD
 | 
			
		||||
if( (num & 1) == 1) {};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user