Closed Bug 1259057 Opened 8 years ago Closed 8 years ago

Remove ifdef'ed out s_mp_clamp() call at the end of s_mp_rshd()

Categories

(NSS :: Libraries, defect)

defect
Not set
normal

Tracking

(firefox48 affected)

RESOLVED FIXED
Tracking Status
firefox48 --- affected

People

(Reporter: ttaubert, Assigned: ttaubert)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

s_mp_rshd(a, p) shifts an mp_int |a| by |p| digits to the right. It zeroes all now unused digits to maintain the invariant that digits above the precision are all zero.

We don't need to call s_mp_clamp() at the end here, assuming the above invariant. That's why it's wrapped in #ifdef 0 - #endif. Let's just remove those lines.
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
Attachment #8746003 - Flags: review?(franziskuskiefer)
Attachment #8746003 - Flags: review?(franziskuskiefer) → review+
https://hg.mozilla.org/projects/nss/rev/9cd91651df9a
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: