> -----Original Message-----
> From: Dimitry Sibiryakov [mailto:s...@ibphoenix.com] 
> Sent: Sábado, 24 de Mayo de 2014 3:13
> 
> 24.05.2014 2:28, Claudio Valderrama C. wrote:
> > We have
> > BIN_SHL
> > BIN_SHR
> > for shifting bits.
> 
>    Oh, indeed. Stupid me... :(

BTW, I wonder if we documented this:

SQL> select bin_shr(1, 1) from rdb$database;

              BIN_SHR
=====================
                    0

SQL> select bin_shr(-1, 1) from rdb$database;

              BIN_SHR
=====================
                   -1

The right shift op pads negative quantities with "1". Maybe we need to make
the difference as in Java: >> and >>>>.

C.


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to