Skip to content

Both math.Logb and math.Ilogb are broken #1141

@niemeyer

Description

@niemeyer
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. math.Ilogb(128) or math.Logb(128)

What is the expected output?

7

What do you see instead?

8

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

Ubuntu

Which revision are you using?  (hg identify)

ca2f90900b9c tip

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions