micro-tess icon indicating copy to clipboard operation
micro-tess copied to clipboard

Question about Q.h implement

Open heroboy opened this issue 2 years ago • 1 comments

I see the implment of shift_right_correctly_by. Is it because:

For negative a, the value of a >> b is implementation-defined (until C++20)

But in multiply<1>, why you don't care to use fpValue1>>P?

And in the implment of operator /=. Why you use left shift directly? Because:

For negative a, the behavior of a << b is undefined.

Looks like it is worse than implementation-defined

heroboy avatar Sep 06 '23 01:09 heroboy

Hi @heroboy , I have read your comment, thank you. I will try to get back to you with discussion at the weekend or start of next week.

HendrixString avatar Sep 06 '23 09:09 HendrixString