k-FP | Benchmarks for the k-FP WF attack | Functional Programming library
kandi X-RAY | k-FP Summary
kandi X-RAY | k-FP Summary
Benchmarks for the k-FP WF attack
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Summarize all the features in the trace data
- Calculate time percentile stats
- Calculate the first and last30 pkts stats
- Calculate the interarrival time averaged over the max value
- Calculate the average packet ordering
- Parse trace data from trace data
- Calculate the average number of times per second
- Calculate the density of packets in the trace data
- Splits the list_data into two lists
- Return the neighborhood of the given iterable
- Splits a sequence into integers
- Compute the interarrival time
- Compute inter - time difference between inter - pkt data
- Calculates the perc inc and out of the trace data
- Return the number of packets in the trace data
k-FP Key Features
k-FP Examples and Code Snippets
Community Discussions
Trending Discussions on k-FP
QUESTION
I'm currently given 32 bits of data that are in the Digital Equipment Corporation (DEC) floating point format or PDP-11 (or fp-11). The data is given in little endian. In C, how do I get a regular IEEE-754 single precision floating point from it?
I've found some references, but they are very confusing: http://home.kpn.nl/jhm.bonten/computers/bitsandbytes/wordsizes/hidbit.htm
http://www.bitsavers.org/pdf/dec/pdp11/1160/EK-FP11E-UG-001_FP11-E_Users_Guide_Dec77.pdf
EDIT: (in response to comment) by confusing I'm referring to the msb and lsb aspects of conforming to little endian and additionally how to get that into a human readable format for printf. heres what i tried so far:
...ANSWER
Answered 2020-Nov-10 at 22:47Caveat: I have never used a PDP-11, so the following is based purely on the documentation linked in the question.
The PDP-11 was a 16-bit machine using 16-bit words. 32-bit single-precision floating-point data was stored in a "mixed-endian" format: the more significant word was stored at the lower address, but within each word, the less significant byte was stored at the lower address. In other words, in order of increasing addresses, the four bytes are stored in order 2, 3, 0, 1.
The PDP-11 floating-point format is similar to the IEEE-754 binary32
format, using sign-magnitude representation with eight exponent bits and a significand (mantissa) whose most significant bit is assumed to be 1 and therefore not stored. The exponent bias is 128 instead of 127 for IEEE-754 binary32
, and the significand is normalized to [0.5, 1) instead of [1, 2) for IEEE-754 binary32
. Also, subnormals, infinities, and NaNs are not supported.
This means that conversion can never overflow, but it can underflow (with an accompanying potential reduction in accuracy) to an IEEE-754 binary
subnormal. The following program assumes that we are running on a machine with IEEE-754 floating-point, and are presented with PDP-11 floating-point data as a sequence of bytes in memory order.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install k-FP
You can use k-FP like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page