Syntax style question

DSP related issues, mathematics, processing and techniques
Post Reply
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Syntax style question

Post by Rocko »

I've noticed this syntax styling (within stage(0) of 'blue code'):

Code: Select all

x = 3e10 | 0.9999 | 1


What does this mean ? Any idea?
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Syntax style question

Post by martinvicanek »

| means bitwise or. The code line is a hack to assign a particular bitmask.
Post Reply